import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:myapp/app/theme/app_color.dart';
import 'package:myapp/app/theme/resource/images.dart';
import 'package:myapp/generated/locales.g.dart';

import '../controllers/entrance_controller.dart';

class EntranceView extends GetView<EntranceController> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(
        color: AppColor.white,
        child: Stack(
          children: [
            Center(child: Image.asset(ImageKeys.app_cover, fit: BoxFit.fitHeight,),),
            Positioned(
              top: 35,
              right: 30,
              child: Stack(
                alignment: Alignment.center,
                children: [
                  Obx(()=> CircularProgressIndicator(
                    backgroundColor: AppColor.white,
                    valueColor: AlwaysStoppedAnimation<Color>(AppColor.red80),
                    value: controller.countDown.value,
                  )),
                  InkWell(child: Text(LocaleKeys.pass.tr, style: TextStyle(fontSize: 12, color: AppColor.red80),),)
                ],
              ),
            ),
          ],
        ),
      ),
    );
  }
}
